var dao = require("./dao.js");

function saveRank(response,datas){
	var json = eval("("+datas+")");
    var arr = json.arr;
    for (var i in arr){
        var obj = arr[i];
        dao.saveRank(obj);
    }

	response.writeHead(200,{"Content-Type":"text/html"});
	response.write("ok.");
	response.end();
}

exports.saveRank=saveRank;
